import request from '@/utils/request'

// 查询任务进度列表
export function listTaskProgress(query) {
  return request({
    url: '/gs/taskProgress/list',
    method: 'get',
    params: query
  })
}

// 查询任务进度详细
export function getTaskProgress(id) {
  return request({
    url: '/gs/taskProgress/' + id,
    method: 'get'
  })
}

// 新增任务进度
export function addTaskProgress(data) {
  return request({
    url: '/gs/taskProgress',
    method: 'post',
    data: data
  })
}

// 修改任务进度
export function updateTaskProgress(data) {
  return request({
    url: '/gs/taskProgress',
    method: 'put',
    data: data
  })
}

// 删除任务进度
export function delTaskProgress(id) {
  return request({
    url: '/gs/taskProgress/' + id,
    method: 'delete'
  })
}
// 删除任务进度
export function auditTaskProgress(id) {
  return request({
    url: '/gs/taskProgress/auditTaskProgress/' + id,
    method: 'post'
  })
}
